package edu.sctu.practice.class01.zhengsenwen.assign.assign03.test03;

/**
 * Created by zhengsenwen on 2015/11/12.
 */
public class Name implements Cloneable{

    //            （2）创建Name类，表示人名，其中包含三个String类型的数据成员：firstName，middlName和lastName。
    //            （5）为了实现CloneableCircle类对象的深拷贝，Name类也应该实现Cloneable接口，并实现clone方法。


    public String firstName;
    public String middleName;
    public String lastName;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getMiddleName() {
        return middleName;
    }

    public void setMiddleName(String middleName) {
        this.middleName = middleName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
}
